package com.bobo.dto;

import com.bobo.annotations.Column;
import com.bobo.annotations.ManyToOne;
import com.bobo.annotations.Table;
import com.bobo.model.Person;
import com.bobo.model.Photo;

/**
 * Created by bobo on 16-11-17.
 */
@Table("v_t")
public class UserDto {

    @Column("id")
    private Integer id;
    @Column("name")
    private String name;
    @ManyToOne
    private Photo photo;
    @ManyToOne
    private Person person;

    public UserDto() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Photo getPhoto() {
        return photo;
    }

    public void setPhoto(Photo photo) {
        this.photo = photo;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }
}
